import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/svg.dart';
import 'package:moose_app/ui/values/values.dart';

class ATHSocialIcon extends StatelessWidget {
  final String iconSrc;
  final Function press;

  const ATHSocialIcon({
    Key key,
    this.iconSrc,
    this.press,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: press,
      child: Container(
        margin: EdgeInsets.symmetric(horizontal: 16.h),
        padding: EdgeInsets.all(16.w),
        decoration: BoxDecoration(
          border: Border.all(width: 2.w, color: kColorPrimaryLight),
          shape: BoxShape.circle,
        ),
        child: SvgPicture.asset(iconSrc, height: 60.w, width: 60.w),
      ),
    );
  }
}
